.class Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;
.super Landroid/os/AsyncTask;
.source "AbstractPostsListActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/opongo/android/custom/AbstractPostsListActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "downloadOldPostsAsyncTask"
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Landroid/os/AsyncTask",
        "<",
        "Ljava/lang/Integer;",
        "Ljava/lang/Void;",
        "Landroid/database/Cursor;",
        ">;"
    }
.end annotation


# instance fields
.field private changeFooterView:Z

.field final synthetic this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;


# direct methods
.method private constructor <init>(Lcom/opongo/android/custom/AbstractPostsListActivity;)V
    .locals 1
    .parameter

    .prologue
    .line 230
    iput-object p1, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    invoke-direct {p0}, Landroid/os/AsyncTask;-><init>()V

    .line 233
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->changeFooterView:Z

    return-void
.end method

.method synthetic constructor <init>(Lcom/opongo/android/custom/AbstractPostsListActivity;Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 230
    invoke-direct {p0, p1}, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;-><init>(Lcom/opongo/android/custom/AbstractPostsListActivity;)V

    return-void
.end method


# virtual methods
.method protected varargs doInBackground([Ljava/lang/Integer;)Landroid/database/Cursor;
    .locals 12
    .parameter "params"

    .prologue
    const/4 v11, 0x2

    const/4 v1, 0x1

    .line 237
    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iput-boolean v1, v0, Lcom/opongo/android/custom/AbstractPostsListActivity;->lockLoading:Z

    .line 239
    const/4 v0, 0x0

    aget-object v0, p1, v0

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne v0, v1, :cond_0

    .line 240
    iput-boolean v1, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->changeFooterView:Z

    .line 242
    :cond_0
    const/16 v9, 0x14

    .line 243
    .local v9, postperpage:I
    aget-object v0, p1, v1

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v7

    .line 246
    .local v7, page:I
    aget-object v0, p1, v11

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne v0, v1, :cond_1

    .line 247
    mul-int/2addr v9, v7

    .line 248
    const/4 v7, 0x1

    .line 251
    :cond_1
    iget-object v10, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v0, v0, Lcom/opongo/android/custom/AbstractPostsListActivity;->apiManager:Lcom/opongo/blogapp/manager/APIManager;

    const/16 v3, 0x32

    .line 252
    const-string v4, "date"

    const-string v5, "week"

    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v6, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->searchString:Ljava/lang/String;

    move v2, v1

    .line 251
    invoke-virtual/range {v0 .. v6}, Lcom/opongo/blogapp/manager/APIManager;->getSpicyDeals(IIILjava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    #setter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->posts:Ljava/util/ArrayList;
    invoke-static {v10, v0}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$0(Lcom/opongo/android/custom/AbstractPostsListActivity;Ljava/util/ArrayList;)V

    .line 254
    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->posts:Ljava/util/ArrayList;
    invoke-static {v0}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$1(Lcom/opongo/android/custom/AbstractPostsListActivity;)Ljava/util/ArrayList;

    move-result-object v0

    if-eqz v0, :cond_3

    .line 257
    :try_start_0
    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->posts:Ljava/util/ArrayList;
    invoke-static {v0}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$1(Lcom/opongo/android/custom/AbstractPostsListActivity;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v0

    :cond_2
    :goto_0
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    move-result v2

    if-nez v2, :cond_4

    .line 284
    :goto_1
    aget-object v0, p1, v11

    invoke-virtual {v0}, Ljava/lang/Integer;->intValue()I

    move-result v0

    if-ne v0, v1, :cond_8

    .line 285
    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v0, v0, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v0}, Lcom/opongo/blogapp/manager/DatabaseManager;->cleanPosts()V

    .line 291
    :cond_3
    :goto_2
    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v0, v0, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    new-instance v1, Ljava/lang/StringBuilder;

    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->query:Ljava/lang/String;

    invoke-static {v2}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v2

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    const-string v2, " LIMIT "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->queryLimit:I

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/opongo/blogapp/manager/DatabaseManager;->query(Ljava/lang/String;)Landroid/database/Cursor;

    move-result-object v0

    return-object v0

    .line 257
    :cond_4
    :try_start_1
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v8

    check-cast v8, Lcom/opongo/blogapp/common/Post;

    .line 259
    .local v8, post:Lcom/opongo/blogapp/common/Post;
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    iget v3, v8, Lcom/opongo/blogapp/common/Post;->id:I

    int-to-long v3, v3

    invoke-virtual {v2, v3, v4}, Lcom/opongo/blogapp/manager/DatabaseManager;->itemExists(J)Z

    move-result v2

    if-eqz v2, :cond_6

    .line 260
    sget-boolean v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->DEBUG:Z

    if-eqz v2, :cond_5

    .line 261
    invoke-static {}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$2()Ljava/lang/String;

    move-result-object v2

    .line 262
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Updating item with id "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 263
    iget v4, v8, Lcom/opongo/blogapp/common/Post;->id:I

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 262
    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 261
    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 264
    :cond_5
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v2, v8}, Lcom/opongo/blogapp/manager/DatabaseManager;->updatePost(Lcom/opongo/blogapp/common/Post;)I

    .line 274
    :goto_3
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->post_id:I

    if-eqz v2, :cond_2

    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->post_id:I

    iget v3, v8, Lcom/opongo/blogapp/common/Post;->id:I

    if-ne v2, v3, :cond_2

    .line 275
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->posts:Ljava/util/ArrayList;
    invoke-static {v3}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$1(Lcom/opongo/android/custom/AbstractPostsListActivity;)Ljava/util/ArrayList;

    move-result-object v3

    invoke-virtual {v3, v8}, Ljava/util/ArrayList;->indexOf(Ljava/lang/Object;)I

    move-result v3

    iput v3, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->position:I

    goto/16 :goto_0

    .line 279
    .end local v8           #post:Lcom/opongo/blogapp/common/Post;
    :catch_0
    move-exception v0

    goto/16 :goto_1

    .line 267
    .restart local v8       #post:Lcom/opongo/blogapp/common/Post;
    :cond_6
    sget-boolean v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->DEBUG:Z

    if-eqz v2, :cond_7

    .line 268
    invoke-static {}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$2()Ljava/lang/String;

    move-result-object v2

    .line 269
    new-instance v3, Ljava/lang/StringBuilder;

    const-string v4, "Persisting item with id "

    invoke-direct {v3, v4}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 270
    iget v4, v8, Lcom/opongo/blogapp/common/Post;->id:I

    invoke-static {v4}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    .line 269
    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 268
    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 271
    :cond_7
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v2, v8}, Lcom/opongo/blogapp/manager/DatabaseManager;->insertPost(Lcom/opongo/blogapp/common/Post;)J
    :try_end_1
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_3

    .line 287
    .end local v8           #post:Lcom/opongo/blogapp/common/Post;
    :cond_8
    iget-object v0, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v0, v0, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    new-instance v1, Ljava/lang/StringBuilder;

    const-string v2, "UPDATE "

    invoke-direct {v1, v2}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v2}, Lcom/opongo/blogapp/manager/DatabaseManager;->getTableName()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    .line 288
    const-string v2, " SET newpost = 0"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    .line 287
    invoke-virtual {v0, v1}, Lcom/opongo/blogapp/manager/DatabaseManager;->execQuery(Ljava/lang/String;)V

    goto/16 :goto_2
.end method

.method protected bridge varargs synthetic doInBackground([Ljava/lang/Object;)Ljava/lang/Object;
    .locals 1
    .parameter

    .prologue
    .line 1
    check-cast p1, [Ljava/lang/Integer;

    invoke-virtual {p0, p1}, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->doInBackground([Ljava/lang/Integer;)Landroid/database/Cursor;

    move-result-object v0

    return-object v0
.end method

.method protected onPostExecute(Landroid/database/Cursor;)V
    .locals 6
    .parameter "c"

    .prologue
    const/4 v5, 0x0

    .line 296
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iput-boolean v5, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->lockLoading:Z

    .line 298
    new-instance v0, Landroid/content/Intent;

    const-string v2, "com.opongo.progressDialog_hide"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 299
    .local v0, i:Landroid/content/Intent;
    const-string v2, "MESSAGE"

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    const v4, 0x7f070017

    invoke-virtual {v3, v4}, Lcom/opongo/android/custom/AbstractPostsListActivity;->getString(I)Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v0, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 300
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$3(Lcom/opongo/android/custom/AbstractPostsListActivity;)Landroid/content/Context;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/content/Context;->sendBroadcast(Landroid/content/Intent;)V

    .line 302
    sget-boolean v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->DEBUG:Z

    if-eqz v2, :cond_0

    .line 303
    invoke-static {}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$2()Ljava/lang/String;

    move-result-object v2

    const-string v3, "onPostExecute"

    invoke-static {v2, v3}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    .line 304
    :cond_0
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->mAdapter:Lcom/opongo/android/custom/PostListAdapter;

    invoke-virtual {v2, p1}, Lcom/opongo/android/custom/PostListAdapter;->changeCursor(Landroid/database/Cursor;)V

    .line 305
    iget-boolean v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->changeFooterView:Z

    if-eqz v2, :cond_1

    .line 306
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    invoke-virtual {v2}, Lcom/opongo/android/custom/AbstractPostsListActivity;->getListView()Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->footerViewLoading:Landroid/view/View;
    invoke-static {v3}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$4(Lcom/opongo/android/custom/AbstractPostsListActivity;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->removeFooterView(Landroid/view/View;)Z

    .line 307
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    invoke-virtual {v2}, Lcom/opongo/android/custom/AbstractPostsListActivity;->getListView()Landroid/widget/ListView;

    move-result-object v2

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->footerView:Landroid/view/View;
    invoke-static {v3}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$5(Lcom/opongo/android/custom/AbstractPostsListActivity;)Landroid/view/View;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/ListView;->addFooterView(Landroid/view/View;)V

    .line 308
    iput-boolean v5, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->changeFooterView:Z

    .line 310
    :cond_1
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->mAdapter:Lcom/opongo/android/custom/PostListAdapter;

    invoke-virtual {v2}, Lcom/opongo/android/custom/PostListAdapter;->notifyDataSetChanged()V

    .line 312
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget v2, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->post_id:I

    if-eqz v2, :cond_2

    .line 313
    invoke-interface {p1}, Landroid/database/Cursor;->requery()Z

    .line 315
    new-instance v1, Landroid/content/Intent;

    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    #getter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->context:Landroid/content/Context;
    invoke-static {v2}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$3(Lcom/opongo/android/custom/AbstractPostsListActivity;)Landroid/content/Context;

    move-result-object v2

    const-class v3, Lcom/opongo/blogapp/activities/PostViewScrollActivity;

    invoke-direct {v1, v2, v3}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 316
    .local v1, intent:Landroid/content/Intent;
    const-string v2, "POSITION"

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget v3, v3, Lcom/opongo/android/custom/AbstractPostsListActivity;->position:I

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 317
    const-string v2, "TABLENAME"

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v3, v3, Lcom/opongo/android/custom/AbstractPostsListActivity;->dbManager:Lcom/opongo/blogapp/manager/DatabaseManager;

    invoke-virtual {v3}, Lcom/opongo/blogapp/manager/DatabaseManager;->getTableName()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 318
    const-string v2, "QUERY"

    iget-object v3, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iget-object v3, v3, Lcom/opongo/android/custom/AbstractPostsListActivity;->query:Ljava/lang/String;

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 320
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    invoke-virtual {v2, v1}, Lcom/opongo/android/custom/AbstractPostsListActivity;->startActivity(Landroid/content/Intent;)V

    .line 322
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    iput v5, v2, Lcom/opongo/android/custom/AbstractPostsListActivity;->post_id:I

    .line 325
    .end local v1           #intent:Landroid/content/Intent;
    :cond_2
    iget-object v2, p0, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->this$0:Lcom/opongo/android/custom/AbstractPostsListActivity;

    const/4 v3, 0x0

    #setter for: Lcom/opongo/android/custom/AbstractPostsListActivity;->downloadOld:Landroid/os/AsyncTask;
    invoke-static {v2, v3}, Lcom/opongo/android/custom/AbstractPostsListActivity;->access$6(Lcom/opongo/android/custom/AbstractPostsListActivity;Landroid/os/AsyncTask;)V

    .line 326
    return-void
.end method

.method protected bridge synthetic onPostExecute(Ljava/lang/Object;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    check-cast p1, Landroid/database/Cursor;

    invoke-virtual {p0, p1}, Lcom/opongo/android/custom/AbstractPostsListActivity$downloadOldPostsAsyncTask;->onPostExecute(Landroid/database/Cursor;)V

    return-void
.end method
